from ..publish import Publish


def entrypoint(arguments, params):
    """ Command entrypoint.

    :param arguments: Command line parsed argument as argparse.Namespace.
    :param params: Deserialized JSON configuration file provided in CLI args.
    """
    # TODO: check with output naming.
    publish = Publish(arguments.configuration)
    # publish.export_model(arguments.export_dir)
    publish.export_frozen_model(arguments.export_dir)
    # publish.convert_tflite_from_saved_model(arguments.export_dir)
    # publish.convert_tflite_from_session(arguments.export_dir)
